package com.microservice.salmon.db.entities;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name = "t_shop_roles")
@Data
@EqualsAndHashCode(of = "id")
public class ShopRole implements Serializable {
    private static final long serialVersionUID = -5037186699576216970L;
    /**
     * 编号
     */
    @Id
    private Integer id;

    /**
     * 归属店铺
     */
    @Column(name = "shop_id")
    private Integer shopId;

    /**
     * 角色名称
     */
    private String name;

    /**
     * 英文名称
     */
    private String enname;

    /**
     * 创建者
     */
    @Column(name = "create_by")
    private Integer createBy;

    /**
     * 更新者
     */
    @Column(name = "update_by")
    private Integer updateBy;

    /**
     * 备注信息
     */
    private String remarks;

    /**
     * 有效状态 1:有效 -1:无效
     */
    @Column(name = "data_flag")
    private Byte dataFlag;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * json格式的权限信息
     */
    private String privilege;

}